package org.cuit.lmq.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.cuit.lmq.constants.enums.TextTypeEnum;

import java.util.Date;

/**
 * @author Seon
 * @date 2023/3/14
 */
@Slf4j
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_home_page")
public class HomePage {
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    /**
     * 热度
     */
    private Long heats;
    private String frontCover;
    private String title;
    private String text;
    /**
     * 正文类型
     */
    private TextTypeEnum type;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
